/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package lu.med.praxiswahl.wahlumed.model.beans;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author pkendzo
 */
@Entity
@Table(name = "PRAXIS_COTARIFEGUELTIGKEIT")
public class CodeRatesIntervalTBL implements Serializable
{

    private static final long serialVersionUID = 1L;

    public CodeRatesIntervalTBL()
    {

    }

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    private String fromDate;
    private String toDate;

    public Long getId()
    {
	return id;
    }

    public void setId(Long id)
    {
	this.id = id;
    }

    @Override
    public int hashCode()
    {
	int hash = 0;
	hash += (id != null ? id.hashCode() : 0);
	return hash;
    }

    @Override
    public String toString()
    {
	return "lu.med.praxiswahl.wahlumed.model.beans.CodeTarifIntervalTBL[id=" + id + "]";
    }

    public String getToDate()
    {
	return toDate;
    }

    public void setToDate(String toDate)
    {
	this.toDate = toDate;
    }

    public String getFromDate()
    {
	return fromDate;
    }

    public void setFrom(String fromDate)
    {
	this.fromDate = fromDate;
    }

}
